package cn.wolfcode.car.mapper;

import cn.wolfcode.car.domain.Consumption;
import cn.wolfcode.car.qo.BusinessReportQueryObject;
import cn.wolfcode.car.qo.ConsumptionQueryObject;
import cn.wolfcode.car.vo.BusinessReportVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ConsumptionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Consumption record);

    Consumption selectByPrimaryKey(Long id);

    List<Consumption> selectAll();

    int updateByPrimaryKey(Consumption record);

    List<Consumption> selectForPage(ConsumptionQueryObject qo);

    void updateStatus(@Param("id") Long id, @Param("status") Integer status);

    void updateStatusShenhe(@Param("id") Long id, @Param("status") Integer status, @Param("date") Date date, @Param("empid") Long empid);

    void updateStatusShenheHuaiZhang(@Param("id") Long id, @Param("status") Integer status, @Param("date") Date date, @Param("auditorid") Long auditorid);

    List<BusinessReportVO> selectByGroup(BusinessReportQueryObject qo);
}